package ooday05;
/**匿名内部类*/
public class AnonInnerClassDemo {
    public static void main(String[] args) {

        Aoo a = new Aoo(){};
        //相当于如下代码
        Aoo b = new Boo();

    }


    abstract static class Aoo{

    }
    static class Boo extends Aoo{}
}
